package com.itheima02;

import java.io.UnsupportedEncodingException;
import java.util.Arrays;

public class Test07 {
    public static void main(String[] args) throws UnsupportedEncodingException {
        String s1 = "shui是我";
        byte[] arr1 = s1.getBytes("GBK");
        System.out.println(Arrays.toString(arr1));

        String s2 = new String(arr1, "GBK");
        System.out.println(s2);

        String s3 = new String(arr1);
        System.out.println(s3);

    }
}
